package com.video.main_video.common.cutException;


import java.io.Serializable;

/***
 * @author wdx
 * @date 2022/4/9
 * @desc 异常
 */
public class ResponseException extends RuntimeException implements Serializable {

    private static final long serialVersionUID=1L;

    private ResponseExceptionEnum exceptionEnum;

    private String errorMsg;

    public ResponseException(ResponseExceptionEnum exceptionEnum, String errorMsg){
        this.exceptionEnum=exceptionEnum;
        this.errorMsg=errorMsg;
    }

    public ResponseException(ResponseExceptionEnum exceptionEnum){
        this.exceptionEnum=exceptionEnum;
    }
    public ResponseException(String errorMsg){
        this.errorMsg=errorMsg;
    }

    public ResponseExceptionEnum getExceptionEnum() {
        return exceptionEnum;
    }

    public void setExceptionEnum(ResponseExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
